View Issue Details

IDProjectCategoryView StatusLast Update
0001826K18X001.00 SKB SWANSWpublic2024-01-23 10:37
Reporter(ALTech) Sangmin Choi Assigned To(ALTech) Sangmin Choi Due Date2023-11-08 13:14
PrioritynormalSeveritys4-minorReproducibilityalways
Status closedResolutionreopened 
Summary0001826: The sound is too loud under tunneled playback.
DescriptionSKB services the VOD as HLS and it plays as tunneled.
When I play the HLS VOD the sound is too loud compared with Live sound.

Now, the HLS VOD services as default.
You can see the following log message when you play the HLS VOD.
130|BFX-UA300:/ # logcat | grep "isHls is"
11-02 14:44:16.484 1697 1697 I VODPlayerUtils: isHls is true
11-02 14:44:16.513 1697 1697 I VODPlayerUtils: isHls is true
11-02 14:44:20.391 1697 1697 I VODPlayerUtils: isHls is true

Could you please check this issue?
This issue is discussed in following jira.
https://jira.skbroadband.com/browse/BTVV-6883

Thank you.
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) Wooshin Kang , (SW) Jason Ling

Activities

(ALTech) Sangmin Choi

2023-11-02 13:51

developer   ~0014450

Hello, Jason,

Could you please check this issue?

Thank you.
Sangmin Choi.

(ALTech) Sangmin Choi

2023-11-02 15:14

developer   ~0014451

Hello, Jerry,

I think I found something, please stop checking this issue.
I will let you know it's helpful.

Thank you.
Sangmin Choi.

(ALTech) Sangmin Choi

2023-11-02 16:34

developer   ~0014453

Hello, Jerry and Jason,

When I change the volume, the called Synaptics AMP function is different with Live and HLS VOD.

// Live
vendor/synaptics/btv-hal-impl/synaptics/hal_av_pipeline.c
    -> AVP_SetMediaAudioVolume(AVP_HANDLE player, int volume, float gain)
        -> AMP_SND_SetStreamVolumeIndB is called

// HLS VOD
vendor/synaptics/vsxxx/audio/AudioStreamTunnelOut.cpp
    -> AudioStreamTunnelOut::setVolume(float left, float right)
        -> AudioStreamTunnelOut::setVolume(UINT32 volume)
            -> AMP_SND_SetStreamVolume is called

So, the output sound is different because they called different function with different parameter.

To fix this issue, in HLS VOD playback, AMP_SND_SetStreamVolume function should be changed to AMP_SND_SetStreamVolumeIndB.
And, also calculating correct volume gain from input parameters(float left, float right) is required.

Could you please check it?

Thank you.
Sangmin Choi.

(ALTech) Sangmin Choi

2023-11-03 08:52

developer   ~0014460

And, I have one more question.

Do you know why (float left, float right) parameters were passed when I change the volume in HLS VOD?

(SW) Jerry Lin

2023-11-06 10:09

developer   ~0014472

Hi Sangmin,
I check with the follwoing commits in vendor/synaptics/btv-hal-impl/synaptics/hal_av_pipeline.c.
1. 15496b6304853261d844caddd5faaa5646daada1
2. e48377383d107e17ae9f799a697509d7be18a8dc
3. 4082cfb662d3d084b2adc079feb17710d0956f6e
4. 2f5b13179fb7c773701fdacfc1780e8254539f21

It seems to read gain value from /btv_home/config/media_volume.dat and add the gain value to AMP_SND_SetStreamVolumeIndB.
Please help to confirm with SPtek.
Can this gain value also added in vendor/synaptics/vsxxx/audio/AudioStreamTunnelOut.cpp.

Please help to confim this commit ( 2f5b13179fb7c773701fdacfc1780e8254539f21 ) with SPtek,
This commit remove AMP_SND_SetStreamVolume().
Maybe this modifcation cause this issue happened.

Jerry

(ALTech) Sangmin Choi

2023-11-07 12:37

developer   ~0014486

Hello, Jerry,

Please help to confim this commit ( 2f5b13179fb7c773701fdacfc1780e8254539f21 ) with SPtek,
This commit remove AMP_SND_SetStreamVolume().
Maybe this modifcation cause this issue happened.
-> I removed that commit, but the issue has also reproduced.(HLS VOD sound is louder than Live)

I think my analysis disturbs you to figure out the cause correctly.
Please ignore my comment(0014453) and please check why the HLS VOD sound is louder than Live.

Thank you.
Sangmin Choi.

(ALTech) Sangmin Choi

2023-11-13 15:52

developer   ~0014517

Hello, Jerry,

Could you please let me know if there is any update?

Thank you.
Sangmin Choi.

(ALTech) Sangmin Choi

2023-11-20 14:24

developer   ~0014588

Hello, Jerry,

Could you please let me know if there is any update?

Thank you.
Sangmin Choi.

(SW) Jerry Lin

2023-11-21 08:27

developer   ~0014592

Hi Sangmin,
I will share you test FW today.
I read the gain value from /btv_home/config/media_volume.dat and apply to AMP_SND_SetStreamVolumeIndB().

Jerry

(ALTech) Sangmin Choi

2023-11-21 10:06

developer   ~0014596

Hello, Jerry,

Thank you.
Please prepare the test firmware based on 540 branches.

Best Regards,
Sangmin Choi.

(SW) Jerry Lin

2023-11-21 10:29

developer   ~0014597

Hi Sangmin Choi,

upload to
/release_by_fxn/swan_test_image/20231121_mantis1826/usb_bfx-ua300_V19.540.22_SD.zip

Jerry

(ALTech) Sangmin Choi

2023-11-27 13:40

developer   ~0014631

Hello, Jerry,

Please apply this modification to 541 branches.
And, please add "[BPM-25848]" to the prefix of commit message.

Thank you.
Sangmin Choi.

(SW) Jerry Lin

2023-11-27 17:49

developer   ~0014636

Hi Sangmin Choi ,
commit finished.
2023-11-27 17:48:36 | liang-chyi.lin@fii.. | 5505072 | vendor/synaptics/vsxxx | [BPM-25848] The sound is too loud under tunneled playback. [2/2]
2023-11-27 17:47:54 | liang-chyi.lin@fii.. | 19acc0c | device/synaptics/sequoia | [BPM-25848] The sound is too loud under tunneled playback. [1/2]

Jerry

(ALTech) Sangmin Choi

2023-11-28 08:26

developer   ~0014639

Hello, Jerry,

Thank you for support.

(ALTech) Sangmin Choi

2024-01-22 11:18

developer   ~0014989

Hello, Jerry,

There is no fclose in AudioStreamTunnelOut::setVolume function.
So, the file descriptor is increased when I change the volume in HLS VOD.
audio@2.0-servi 349 audioserve 93r REG 179,22 8 106 /btv_home/config/media_volume.dat
audio@2.0-servi 349 audioserve 94r REG 179,22 8 106 /btv_home/config/media_volume.dat
audio@2.0-servi 349 audioserve 95r REG 179,22 8 106 /btv_home/config/media_volume.dat
audio@2.0-servi 349 audioserve 96r REG 179,22 8 106 /btv_home/config/media_volume.dat
audio@2.0-servi 349 audioserve 97r REG 179,22 8 106 /btv_home/config/media_volume.dat
audio@2.0-servi 349 audioserve 98r REG 179,22 8 106 /btv_home/config/media_volume.dat

Could you please add fclose in AudioStreamTunnelOut::setVolume function?

Thank you.
Sangmin Choi.

(SW) Jerry Lin

2024-01-22 13:33

developer   ~0014992

Hi Sagngmin ,
Which prefix for this issue ?

Jerry

(ALTech) Sangmin Choi

2024-01-22 13:48

developer   ~0014993

Hello, Jerry,

Please use "[BPM-28194]".

Thank you.

(ALTech) Sangmin Choi

2024-01-23 10:37

developer   ~0014998

This issue was fixed.

Issue History

Date Modified Username Field Change
2023-11-02 13:46 (ALTech) Sangmin Choi New Issue
2023-11-02 13:46 (ALTech) Sangmin Choi Status new => assigned
2023-11-02 13:46 (ALTech) Sangmin Choi Assigned To => (SW) Jason Ling
2023-11-02 13:51 (ALTech) Sangmin Choi Note Added: 0014450
2023-11-02 13:51 (ALTech) Sangmin Choi Due Date 2023-11-06 13:14 => 2023-11-08 13:14
2023-11-02 14:06 (SW) Jason Ling Assigned To (SW) Jason Ling => (SW) Jerry Lin
2023-11-02 15:14 (ALTech) Sangmin Choi Note Added: 0014451
2023-11-02 16:34 (ALTech) Sangmin Choi Note Added: 0014453
2023-11-03 08:52 (ALTech) Sangmin Choi Note Added: 0014460
2023-11-03 13:38 (SW) Jason Ling Issue Monitored: (SW) Jason Ling
2023-11-06 10:09 (SW) Jerry Lin Note Added: 0014472
2023-11-07 12:37 (ALTech) Sangmin Choi Note Added: 0014486
2023-11-13 15:52 (ALTech) Sangmin Choi Note Added: 0014517
2023-11-20 14:24 (ALTech) Sangmin Choi Issue Monitored: (ALTech) Wooshin Kang
2023-11-20 14:24 (ALTech) Sangmin Choi Note Added: 0014588
2023-11-21 08:27 (SW) Jerry Lin Note Added: 0014592
2023-11-21 10:04 (ALTech) Sangmin Choi Issue Monitored: (ALTech) Yoonjoo Lim
2023-11-21 10:06 (ALTech) Sangmin Choi Note Added: 0014596
2023-11-21 10:29 (SW) Jerry Lin Note Added: 0014597
2023-11-21 10:43 (ALTech) Sangmin Choi Issue End Monitor: (ALTech) Yoonjoo Lim
2023-11-27 13:40 (ALTech) Sangmin Choi Note Added: 0014631
2023-11-27 17:49 (SW) Jerry Lin Note Added: 0014636
2023-11-28 08:26 (ALTech) Sangmin Choi Note Added: 0014639
2023-11-28 08:27 (ALTech) Sangmin Choi Assigned To (SW) Jerry Lin => (ALTech) Sangmin Choi
2023-11-28 08:27 (ALTech) Sangmin Choi Status assigned => closed
2023-11-28 08:27 (ALTech) Sangmin Choi Resolution open => fixed
2024-01-22 11:18 (ALTech) Sangmin Choi Assigned To (ALTech) Sangmin Choi => (SW) Jerry Lin
2024-01-22 11:18 (ALTech) Sangmin Choi Status closed => feedback
2024-01-22 11:18 (ALTech) Sangmin Choi Resolution fixed => reopened
2024-01-22 11:18 (ALTech) Sangmin Choi Note Added: 0014989
2024-01-22 13:33 (SW) Jerry Lin Note Added: 0014992
2024-01-22 13:48 (ALTech) Sangmin Choi Note Added: 0014993
2024-01-22 13:48 (ALTech) Sangmin Choi Status feedback => assigned
2024-01-23 10:37 (ALTech) Sangmin Choi Assigned To (SW) Jerry Lin => (ALTech) Sangmin Choi
2024-01-23 10:37 (ALTech) Sangmin Choi Status assigned => closed
2024-01-23 10:37 (ALTech) Sangmin Choi Note Added: 0014998